<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .title{
            font-weight: 700;
            margin: 10px;
        }
        .list .item{
            display: flex;
            justify-content: space-around;
            align-items: center;
            margin: 20px;
        }
        .list .item .left img{
            height: 100px;
            border-radius: 10px;
        }
        .list .item .content .name{
            font-weight: 700;
            margin-bottom: 5px;
        }
        .list .item .content .desc{
            margin-bottom: 5px;
            color: red;
        }
        .list .item .content .money{
            margin-bottom: 10px;
            color: red;
        }

        .list .item .content a{
             color: gray;
             text-decoration: none;
        }
        .list .item .right button{
            width: 70px;
            height: 30px;
            color: white;
            border: none;
            border-radius: 20px;
            background-color: orangered;
        }
    </style>
</head>
<body>
    <div id="app">
        <div class="title">热门单品</div>
        <div class="list">
            <div class="item" v-for="(item,index) in tasklist" v-bind:key="index">
                <div class="left">
                    <img v-bind:src="item.pic" alt="">
                </div>
                <div class="content">
                    <div class="name"> {{ item.name }}</div>
                    <div class="desc"> {{ item.desc }}</div>
                    <div class="money">{{ item.money }}</div>
                    <a href="">{{ item.status == 1 ? '适用门店 >' : 'ddd' }}</a>
                </div>
                <div class="right">
                    <button>{{ item.status == 1 ? '立即兑' : 'ddd' }}</button>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
<script src="./vue-2.5.21.js"></script>
<script>
    let x = new Vue({
        el:'#app',
        data:{
            tasklist:[
                {id:1,pic:'./img/pic5.jpg',name:'脐橙3斤快递到家',desc:'兑换后入手价8.9元',money:'￥10',status:1},
                {id:2,pic:'./img/pic6.jpg',name:'耙耙柑2斤快递到家',desc:'兑换后入手价9.9元',money:'￥30',status:1},
                {id:3,pic:'./img/pic6.jpg',name:'水果捞350g',desc:'兑换后入手价6.9元',money:'￥60',status:1}
            ]
        }
    })
</script>